<?php
include("include/haut.php");

if(!isConnected()){
	header("Location: index.php");
	exit();
}
$membres = getMembres();
?>

<div id="corps">
	<h1>Liste des membres</h1>
	<div id="centre">
		<table style="width: 100%">
			<tr>
				<th>Pseudo</th>
				<th>Statut</th>
				<th>Profil</th>
			</tr>
			<?php
				while($a= mysql_fetch_array($membres)) {
					?>
					<tr>
					<td><?php echo $a['pseudo']; ?></td>
					<td><?php echo $a['statut']; ?></td>
					<td><a href="profil.php?id=<?php echo $a['id']; ?>">Profil</a></td>
				</tr>
					<?php
				}
				?>
			</table>
	</div>
</div>
</div>
<?php
include("include/bas.php");
?>
